﻿
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using Digitalmes.Model.QcManagement;
using Digitalmes.Model;

namespace Digitalmes.ViewModel.QcManagement.QcTemplateVMs
{
    public partial class QcTemplateTemplateVM : BaseTemplateVM
    {
        
        [Display(Name = "_Model._QcTemplate._Name")]
        public ExcelPropety Name_Excel = ExcelPropety.CreateProperty<QcTemplate>(x => x.Name);
        [Display(Name = "_Model._QcTemplate._Code")]
        public ExcelPropety Code_Excel = ExcelPropety.CreateProperty<QcTemplate>(x => x.Code);
        [Display(Name = "_Model._QcTemplate._ProductId")]
        public ExcelPropety ProductId_Excel = ExcelPropety.CreateProperty<QcTemplate>(x => x.ProductId);
        [Display(Name = "_Model._QcTemplate._ProductionName")]
        public ExcelPropety ProductionName_Excel = ExcelPropety.CreateProperty<QcTemplate>(x => x.ProductionName);
        [Display(Name = "_Model._QcTemplate._QcMode")]
        public ExcelPropety QcMode_Excel = ExcelPropety.CreateProperty<QcTemplate>(x => x.QcMode);
        [Display(Name = "_Model._QcTemplate._Aux_1")]
        public ExcelPropety Aux_1_Excel = ExcelPropety.CreateProperty<QcTemplate>(x => x.Aux_1);
        [Display(Name = "_Model._QcTemplate._Aux_2")]
        public ExcelPropety Aux_2_Excel = ExcelPropety.CreateProperty<QcTemplate>(x => x.Aux_2);
        [Display(Name = "_Model._QcTemplate._CreateTime")]
        public ExcelPropety CreateTime_Excel = ExcelPropety.CreateProperty<QcTemplate>(x => x.CreateTime, true);
        [Display(Name = "_Model._QcTemplate._UpdateTime")]
        public ExcelPropety UpdateTime_Excel = ExcelPropety.CreateProperty<QcTemplate>(x => x.UpdateTime, true);
        [Display(Name = "_Model._QcTemplate._CreateBy")]
        public ExcelPropety CreateBy_Excel = ExcelPropety.CreateProperty<QcTemplate>(x => x.CreateBy);
        [Display(Name = "_Model._QcTemplate._UpdateBy")]
        public ExcelPropety UpdateBy_Excel = ExcelPropety.CreateProperty<QcTemplate>(x => x.UpdateBy);
        [Display(Name = "_Model._QcTemplate._IsValid")]
        public ExcelPropety IsValid_Excel = ExcelPropety.CreateProperty<QcTemplate>(x => x.IsValid);
        [Display(Name = "_Model._QcTemplate._TenantCode")]
        public ExcelPropety TenantCode_Excel = ExcelPropety.CreateProperty<QcTemplate>(x => x.TenantCode);

	    protected override void InitVM()
        {
            
        }

    }

    public class QcTemplateImportVM : BaseImportVM<QcTemplateTemplateVM, QcTemplate>
    {
            //import

    }

}